import request from "@/api/request"


function  touchsearch(data){
    return request({
        method:"get",
        // 关键词和搜索历史接口
        url:"/search/indexaction",
        data
    })
}

export {
    touchsearch
}

function  helperaction(data){
    return request({
        method:"get",
        // 搜索提示接口
        url:"/search/helperaction",
        data
    })
}

export {
    helperaction
}


function  addhistoryaction(data){
    return request({
        method:"post",
        // 搜索的关键词添加到数据库
        url:"/search/addhistoryaction",
        data
    })
}

export {
    addhistoryaction
}

function  clearhistoryAction(data){
    return request({
        method:"post",
        // 清空搜索历史
        url:"/search/clearhistoryAction",
        data
    })
}

export {
    clearhistoryAction
}